﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace CsharpCodeGenerator
{
    [XmlRoot("SPandCSharoClassesGenerator", Namespace = "http://www.mahan-web.ir", IsNullable = false)]
    public class ConfigTemplate
    {
        #region "General Settings"
        public bool GenerateWrapperClass = false;
        #endregion

        #region "SQL Script Settings"
        public string AuthorName = string.Empty;
        public bool PassNullAsDefaultParamaeterValue;
        public string StoredProceduresPrefix = string.Empty;
        public bool AutoSaveScript = false;
        public bool GenerateSelectAllProc = true;
        public bool GenerateSelectRowProc = true;
        public bool GenerateSelectRowByForeignKeyProc = true;
        public bool GenerateInsertProc = true;
        public bool GenerateUpdateProc = true;
        public bool GenerateDeleteRowProc = true;
        public bool SaveToFile = true;
        public string Namespace = string.Empty;
        #endregion

        #region "C# Wrapper Class Settings"
        public bool WrapperClass_GenerateStaticMethods = true;
        public string WrapperClass_NameSpace = "Mahan";
        public bool AutoSaveWrapperClass = false;
        #endregion

        public bool GenEntity = false;
    }
}